import { t } from "@/locales";
import { FormRule, PrimaryTableCol } from "tdesign-vue-next";
import { SearchParamsProps } from "@/components/s-table/type";

/**
 * 搜索表单项
 */
export const searchParams: SearchParamsProps[] = [
    {
        label: t('pages.productlabeling.productId'),
        key: 'productId',
    },
    {
        label: t('pages.productlabeling.productname'),
        key: 'productname',
    },
];

/**
 * 表格列
 */
export const COLUMNS: PrimaryTableCol[] = [
    {
        title: t('pages.productlabeling.productId'),
        ellipsis: true,
        align: 'center',
        colKey: 'productId',
        fixed: 'left',
    },
    {
        title: t('pages.productlabeling.productname'),
        ellipsis: true,
        align: 'center',
        colKey: 'productname',
        fixed: 'left',
        width: 180,
    },
    {
        title: t('pages.productlabeling.pricesegment'),
        ellipsis: true,
        align: 'center',
        colKey: 'pricesegment',
    },
    {
        title: t('pages.productlabeling.flavortype'),
        ellipsis: true,
        align: 'center',
        colKey: 'flavortype',
    },
    {
        title: t('pages.productlabeling.tarcontent'),
        ellipsis: true,
        align: 'center',
        colKey: 'tarcontent',
    },
    {
        title: t('pages.productlabeling.cocontent'),
        ellipsis: true,
        align: 'center',
        colKey: 'cocontent',
    },
    {
        title: t('pages.productlabeling.pricecategory'),
        ellipsis: true,
        align: 'center',
        colKey: 'pricecategory',
    },
    {
        title: t('pages.productlabeling.cigarettelength'),
        ellipsis: true,
        align: 'center',
        colKey: 'cigarettelength',
    },
    {
        title: t('pages.productlabeling.cigarettecircumference'),
        ellipsis: true,
        align: 'center',
        colKey: 'cigarettecircumference',
    },
    {
        title: t('pages.productlabeling.cigarettestructure'),
        ellipsis: true,
        align: 'center',
        colKey: 'cigarettestructure',
    },
    {
        title: t('pages.productlabeling.packagingform'),
        ellipsis: true,
        align: 'center',
        colKey: 'packagingform',
    },
    {
        title: t('pages.productlabeling.packagingdesign'),
        ellipsis: true,
        align: 'center',
        colKey: 'packagingdesign',
    },
    {
        title: t('pages.productlabeling.brandattribute'),
        ellipsis: true,
        align: 'center',
        colKey: 'brandattribute',
    },
    {
        title: t('pages.productlabeling.origin'),
        ellipsis: true,
        align: 'center',
        colKey: 'origin',
    },
    {
        title: t('pages.productlabeling.pricepositioning'),
        ellipsis: true,
        align: 'center',
        colKey: 'pricepositioning',
    },
    {
        title: t('pages.productlabeling.brandimage'),
        ellipsis: true,
        align: 'center',
        colKey: 'brandimage',
    },
    {
        title: t('pages.productlabeling.personalitytraits'),
        ellipsis: true,
        align: 'center',
        colKey: 'personalitytraits',
    },
    {
        title: t('pages.productlabeling.age'),
        ellipsis: true,
        align: 'center',
        colKey: 'age',
    },
    {
        title: t('pages.productlabeling.gender'),
        ellipsis: true,
        align: 'center',
        colKey: 'gender',
    },
    {
        title: t('pages.productlabeling.income'),
        ellipsis: true,
        align: 'center',
        colKey: 'income',
    },
    {
        title: t('pages.productlabeling.occupationalbackground'),
        ellipsis: true,
        align: 'center',
        colKey: 'occupationalbackground',
    },
    {
        title: t('pages.productlabeling.consumptionmotivation'),
        ellipsis: true,
        align: 'center',
        colKey: 'consumptionmotivation',
    },
    {
        title: t('pages.productlabeling.psychologicalcharacteristics'),
        ellipsis: true,
        align: 'center',
        colKey: 'psychologicalcharacteristics',
    },
];

/**
 * 表单校验规则
 */
export const FORM_RULES: Record<string, FormRule[]> = {
}